package org.jeecg.modules.demo.peihebumenbiao.service;

import org.jeecg.modules.demo.peihebumenbiao.service.impl.PeihebumenbiaoServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class DateScheduler {
    @Autowired
    private PeihebumenbiaoServiceImpl peihebumenbiaoService;
    @Scheduled(cron = "0 2 18 * * ?")
    public void timeScheduler(){
        System.out.println("定时任务开始执行");
        peihebumenbiaoService.TimedDataGenerator();
        System.out.println("定时任务执行完毕");
    }
}
